Skip to main content

ARDK for Android/com.nianticlabs.ardk.depth/DepthSession

DepthSession

[androidJvm]
class DepthSession : SessionBase<DepthSession>

Creates a Depth session.

Depth enables your app to get estimated depth information from passed in camera data. This must be called before using any other Depth functionality.

Functions​

NameSummary
acquire[androidJvm]
@Synchronized
fun acquire(): DepthSession
close[androidJvm]
@Synchronized
open override fun close()
configure[androidJvm]
fun configure(config: DepthConfig)
Configures depth settings and parameters.
latestDepth[androidJvm]
fun latestDepth(): ARDKResult<DepthBuffer, AwarenessStatus>
Get the latest output from the depth feature
latestDepthImageParams[androidJvm]
fun latestDepthImageParams(): ARDKResult<AwarenessImageParams, AwarenessStatus>
Get the latest image params from the depth feature
start[androidJvm]
fun start()
Starts the depth process.
stop[androidJvm]
fun stop()
Stops the depth process.